import 'package:xlsk/api/index.dart';

class BanjiApi {
  factory BanjiApi(){
    final _instance = BanjiApi._();
    return _instance;
  }
  BanjiApi._();

  getBanji(context,path) async{
    Map<String,dynamic> data = {
      'limit':9999
    };
    var result = [];
    var res = await Request(context).post(path,data);
    var code = res['code'] is String?num.parse(res['code']):res['code'];
    if(code == 200){
      result = res['data']['list'];
    }
    return result;
  }
}